<?php
namespace app\qianyu\model;

use think\Model;

class Driver extends Model
{
    protected $pk = 'driverId';

    public function contact()
    {
        return $this->hasOne('Contact', 'driverId')->field('contactId,contactName,mobile');
    }
}